const path = require('node:path')
const {merge} = require('webpack-merge')

const baseConfig = require('./base.config')
const HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = merge(baseConfig, {
  mode: 'development',
  entry: path.resolve(__dirname, '..', 'demo/index.js'),
  plugins: [
    new HtmlWebpackPlugin({
      template: './demo/index.html'
    })
  ]
})
